package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 创造
     *
     * @param employeeDTO 员工dto
     */
    void create(EmployeeDTO employeeDTO);

    /**
     * 页
     *
     * @param employeePageQueryDTO 员工页面查询dto
     * @return {@link PageResult}<{@link Employee}>
     */
    PageResult<Employee> page(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 修改状态
     *
     * @param id     id
     * @param status 地位
     */
    void modifyStatus(Long id, Integer status);

    /**
     * 按id查询
     *
     * @param id id
     * @return {@link Employee}
     */
    Employee queryById(Long id);

    /**
     * 按id修改
     *
     * @param employeeDTO 员工dto
     */
    void modifyById(EmployeeDTO employeeDTO);
}
